﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Seminar: StateForge::Examples::Seminar::Seminar Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                C# examples using state machines generated by StateBuilderDotNet
            </h1>
            <h3>
                Seminar: StateForge::Examples::Seminar::Seminar Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_state_forge.html">StateForge</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples.html">Examples</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples_1_1_seminar.html">Seminar</a>      </li>
      <li class="navelem"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html">Seminar</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-static-methods">Static Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">StateForge::Examples::Seminar::Seminar Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="StateForge::Examples::Seminar::Seminar" -->
<p><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html" title="Seminar is a container class which hold instances of a SeminarActuator and a generated SeminarContext...">Seminar</a> is a container class which hold instances of a <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_actuator.html" title="SeminarActuator performs the actions.">SeminarActuator</a> and a generated SeminarContext class.  
 <a href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html#details">More...</a></p>

<p><a href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html#a8d0c332159b4177fcae8450f114b2324">Seminar</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html#af607d1cddb1300e436f830780499e213">Main</a> (string[] args)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_actuator.html">SeminarActuator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html#ad7a9f75d62b45674e63846b19d7d6ff8">actuator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SeminarContext&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html#a7ad36ea9588b025ec4e3b7758fe9a846">context</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html" title="Seminar is a container class which hold instances of a SeminarActuator and a generated SeminarContext...">Seminar</a> is a container class which hold instances of a <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_actuator.html" title="SeminarActuator performs the actions.">SeminarActuator</a> and a generated SeminarContext class. </p>

<p>Definition at line <a class="el" href="_seminar_8cs_source.html#l00104">104</a> of file <a class="el" href="_seminar_8cs_source.html">Seminar.cs</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a8d0c332159b4177fcae8450f114b2324"></a><!-- doxytag: member="StateForge::Examples::Seminar::Seminar::Seminar" ref="a8d0c332159b4177fcae8450f114b2324" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">StateForge::Examples::Seminar::Seminar::Seminar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_8cs_source.html#l00109">109</a> of file <a class="el" href="_seminar_8cs_source.html">Seminar.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html#ad7a9f75d62b45674e63846b19d7d6ff8">actuator</a> = <span class="keyword">new</span> SeminarActuator();
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html#a7ad36ea9588b025ec4e3b7758fe9a846">context</a> = <span class="keyword">new</span> SeminarContext(<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html#ad7a9f75d62b45674e63846b19d7d6ff8">actuator</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html#a7ad36ea9588b025ec4e3b7758fe9a846">context</a>.EnterInitialState();
        }
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="af607d1cddb1300e436f830780499e213"></a><!-- doxytag: member="StateForge::Examples::Seminar::Seminar::Main" ref="af607d1cddb1300e436f830780499e213" args="(string[] args)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void StateForge::Examples::Seminar::Seminar::Main </td>
          <td>(</td>
          <td class="paramtype">string[]&#160;</td>
          <td class="paramname"><em>args</em></td><td>)</td>
          <td><code> [inline, static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_8cs_source.html#l00116">116</a> of file <a class="el" href="_seminar_8cs_source.html">Seminar.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html#a8d0c332159b4177fcae8450f114b2324">Seminar</a> mySeminar = <span class="keyword">new</span> <a class="code" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html#a8d0c332159b4177fcae8450f114b2324">Seminar</a>();

            Student alice = <span class="keyword">new</span> Student() { Name = <span class="stringliteral">&quot;Alice&quot;</span> };
            Student beatrice = <span class="keyword">new</span> Student() { Name = <span class="stringliteral">&quot;Beatrice&quot;</span> };
            Student carla = <span class="keyword">new</span> Student() { Name = <span class="stringliteral">&quot;Carla&quot;</span> };

            mySeminar.StudentEnrollRequest(alice);
            mySeminar.StudentEnrollRequest(beatrice);
            mySeminar.StudentEnrollRequest(carla);

            mySeminar.StudentDropped(beatrice);
            mySeminar.StudentDropped(alice);

            mySeminar.TermStarted();
            mySeminar.StudentDropped(carla);

            mySeminar.ClassesEnded();
            mySeminar.ExamsClosed();


            Environment.Exit(0);
        }
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ad7a9f75d62b45674e63846b19d7d6ff8"></a><!-- doxytag: member="StateForge::Examples::Seminar::Seminar::actuator" ref="ad7a9f75d62b45674e63846b19d7d6ff8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar_actuator.html">SeminarActuator</a> <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html#ad7a9f75d62b45674e63846b19d7d6ff8">StateForge::Examples::Seminar::Seminar::actuator</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_8cs_source.html#l00106">106</a> of file <a class="el" href="_seminar_8cs_source.html">Seminar.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a7ad36ea9588b025ec4e3b7758fe9a846"></a><!-- doxytag: member="StateForge::Examples::Seminar::Seminar::context" ref="a7ad36ea9588b025ec4e3b7758fe9a846" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SeminarContext <a class="el" href="class_state_forge_1_1_examples_1_1_seminar_1_1_seminar.html#a7ad36ea9588b025ec4e3b7758fe9a846">StateForge::Examples::Seminar::Seminar::context</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_seminar_8cs_source.html#l00107">107</a> of file <a class="el" href="_seminar_8cs_source.html">Seminar.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_seminar_8cs_source.html">Seminar.cs</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
